import VueRouter from 'vue-router';
import Vue from 'vue'

Vue.use(VueRouter)

import GoodsCom from '../components/goods/GoodsCom'
import RemarkCom from '../components/remark/RemarkCom'
import SellerCom from '../components/seller/SellerCom'

let router = new VueRouter({
    mode: "history",
    routes: [
        {
            name: "home",
            path: '/',
            redirect: "/goods"
        },
        {
            name: "goods",
            path: '/goods',
            component: GoodsCom
        },
        {
            name: "remark",
            path: '/remark',
            component: RemarkCom
        },
        {
            name: "seller",
            path: '/seller',
            component: SellerCom
        }
    ]
})

export default router